package com.twetec.cms.model.po.website;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.twetec.cms.model.po.base.BasePO;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.models.auth.In;

import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhxl
 * @since 2021-09-06
 */
@TableName("WEBSITE_COLUMN")
public class ColumnPO extends BasePO {

    /**
     * 栏目名
     */
    @TableField("NAME")
    private String name;

    /**
     * 父栏目ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField("PARENT_ID")
    private Long parentId;


    /**
     * xpath维护
     * @return
     */
    @TableField("XPATH")
    private String xpath;

    /**
     * 显示顺序
     */
    @TableField("SORT")
    private Integer sort;

    /**
     * seo标题
     */
    @TableField("SEO_TITLE")
    private String seoTitle;

    /**
     * seo关键字
     */
    @TableField("SEO_KEYWORDS")
    private String seoKeywords;

    /**
     * seo描述
     */
    @TableField("SEO_DESC")
    private String seoDesc;

    /**
     * 是否回收
     */
    @TableField("IS_RECOVERY")
    private Integer recovery;

    /**
     * 栏目编码
     */
    @TableField("ENCODED")
    private String encoded;

    /**
     * 栏目类型
     */
    @TableField("TYPE")
    private String type;

    /**
     * 栏目模板 PC端
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField("PC_TEMPLATE_ID")
    private Long pcTemplateId;

    /**
     * 栏目模板 H5端
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField("H5_TEMPLATE_ID")
    private Long h5TemplateId;

    /**
     * 是否导航 0默认，1导航
     */
    @TableField("IS_NAV")
    private Integer nav;

    /**
     * logo
     */
    @TableField("LOGO")
    private String logo;

    /**
     * 是否需要审核(0不需要,1需要审核)
     */
    @TableField("VERIFY_STATUS")
    private Integer verifyStatus;

    //PC_TEMPLATE_PATH

    /**
     * 栏目模板 PC端文件路径
     */
    @TableField("PC_TEMPLATE_PATH")
    private String pcTemplatePath;

    /**
     * 栏目模板 H5端文件路径
     */
    @TableField("H5_TEMPLATE_PATH")
    private String h5TemplatePath;

    /**
     * 跳转地址
     */
    @TableField("JUMP_URL")
    private String jumpUrl;

    /**
     * 跳转地址
     */
    @TableField("PAGE_LIMIT")
    private Integer pageLimit;

    /**
     * 栏目编码的xpath
     * @return
     */
    @TableField("ENCODED_XPATH")
    private String encodedXpath;



    public String getEncodedXpath() {
        return encodedXpath;
    }

    public void setEncodedXpath(String encodedXpath) {
        this.encodedXpath = encodedXpath;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getXpath() {
        return xpath;
    }

    public void setXpath(String xpath) {
        this.xpath = xpath;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getSeoTitle() {
        return seoTitle;
    }

    public void setSeoTitle(String seoTitle) {
        this.seoTitle = seoTitle;
    }

    public String getSeoKeywords() {
        return seoKeywords;
    }

    public void setSeoKeywords(String seoKeywords) {
        this.seoKeywords = seoKeywords;
    }

    public String getSeoDesc() {
        return seoDesc;
    }

    public void setSeoDesc(String seoDesc) {
        this.seoDesc = seoDesc;
    }

    public Integer getRecovery() {
        return recovery;
    }

    public void setRecovery(Integer recovery) {
        this.recovery = recovery;
    }

    public String getEncoded() {
        return encoded;
    }

    public void setEncoded(String encoded) {
        this.encoded = encoded;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getPcTemplateId() {
        return pcTemplateId;
    }

    public void setPcTemplateId(Long pcTemplateId) {
        this.pcTemplateId = pcTemplateId;
    }

    public Long getH5TemplateId() {
        return h5TemplateId;
    }

    public void setH5TemplateId(Long h5TemplateId) {
        this.h5TemplateId = h5TemplateId;
    }

    public Integer getNav() {
        return nav;
    }

    public void setNav(Integer nav) {
        this.nav = nav;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public Integer getVerifyStatus() {
        return verifyStatus;
    }

    public void setVerifyStatus(Integer verifyStatus) {
        this.verifyStatus = verifyStatus;
    }

    public String getPcTemplatePath() {
        return pcTemplatePath;
    }

    public void setPcTemplatePath(String pcTemplatePath) {
        this.pcTemplatePath = pcTemplatePath;
    }

    public String getH5TemplatePath() {
        return h5TemplatePath;
    }

    public void setH5TemplatePath(String h5TemplatePath) {
        this.h5TemplatePath = h5TemplatePath;
    }

    public String getJumpUrl() {
        return jumpUrl;
    }

    public void setJumpUrl(String jumpUrl) {
        this.jumpUrl = jumpUrl;
    }

    public Integer getPageLimit() {
        return pageLimit;
    }

    public void setPageLimit(Integer pageLimit) {
        this.pageLimit = pageLimit;
    }

    @Override
    public String toString() {
        return "ColumnPO{" +
                "name='" + name + '\'' +
                ", parentId=" + parentId +
                ", xpath='" + xpath + '\'' +
                ", sort=" + sort +
                ", seoTitle='" + seoTitle + '\'' +
                ", seoKeywords='" + seoKeywords + '\'' +
                ", seoDesc='" + seoDesc + '\'' +
                ", recovery=" + recovery +
                ", encoded='" + encoded + '\'' +
                ", type='" + type + '\'' +
                ", pcTemplateId=" + pcTemplateId +
                ", h5TemplateId=" + h5TemplateId +
                ", nav=" + nav +
                ", logo='" + logo + '\'' +
                ", verifyStatus=" + verifyStatus +
                ", pcTemplatePath='" + pcTemplatePath + '\'' +
                ", h5TemplatePath='" + h5TemplatePath + '\'' +
                ", jumpUrl='" + jumpUrl + '\'' +
                ", pageLimit='" + pageLimit + '\'' +
                ", encodedXpath='" + encodedXpath + '\'' +
                '}';
    }
}
